#1.使用推导式统计文本串字符出现的次数，注意逗号，句号.及空格不统计。例如字符串如下：
mytext = "I love you,I love zjust,I love huangjj"

char_count = {char: mytext.count(char) for char in set(mytext) \
              if char not in {',', '.', ' '}}

# 过滤掉出现次数为0的字符
char_count = {char: count for char, count in char_count.items() if count > 0}
print(char_count)

